<%--
  Created by IntelliJ IDEA.
  User: zq
  Date: 2015/4/30
  Time: 10:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="/static/style/common.css">
    <link rel="stylesheet" href="/static/style/search.css">
</head>
<body>
<script type="text/template" id="searchtemp">
    <# _.each(obj,function(o,i){ #>
    <div class="searchgoodsone">

        <a href="#"><img src="<#=o.pic#>" alt="<#=o.name#>"></a>
        <p class="goodname"><a href="#"><#=o.name#></a></p>
        <p><span><#=o.id#></#></span><b>￥<#=o.price#></b></p>
        <p><span><#=o.shopName#></span></p>
        <%--<div class="alp">--%>
        <%--<dl>--%>
        <%--<dd><a href="#"><i></i>查看</a></dd>--%>
        <%--<dd class="leftbor"><a href="#"><i></i>2人喜欢</a></dd>--%>
        <%--</dl>--%>
        <%--</div>--%>
    </div>
    <# }) #>
</script>
<input type="text" value="111" id="searchid" tyv="keyword"/>
<div class="w1000">
    <div class="searchlist">
        <div class="btnlist">
            <div class="functionbtn act">
                默认排序
            </div>
            <div class="functionbtn">
                销量
            </div>
            <div class="functionbtn">
                人气
            </div>
            <div class="functionbtn">
                价格
            </div>
        </div>
        <div class="pricerange">
            价格：
            <div class="newinputtype"><input type="text" tyv="min" ><i>╲</i><b>最低价</b></div>
            <span>-</span>
            <div class="newinputtype"><input type="text" tyv="max" ><i>╲</i><b>最高价</b></div>
            <button>确定</button>
        </div>
        <%--<div class="sendgoodsbtn">--%>
            <%--<div class="sendtext">发货地<i></i>--%>
                <%--<div class="addresslist">--%>
                    <%--<div class="box">--%>
                        <%--<div class="bbox">--%>
                            <%--<div class="address_o act">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="xuxian"></div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                            <%--<div class="address_o">北京</div>--%>
                        <%--</div>--%>
                    <%--</div>--%>
                <%--</div>--%>
            <%--</div>--%>
        <%--</div>--%>
       
    </div>
    
    <div class="searchgoods">
        <div class="box">
            <div class="bbox clearafter">
                    <div class="searchgoodsone">
						<c:forEach items="${pager.list}" varStatus="status" var="sg">
                       	 	<a href="${sg.id}"><img src="${sg.pic}" alt="${sg.name}"></a>
                        	<p class="goodname"><a href="${sg.id}">${sg.name}</a></p>
                       		<p><span>${sg.designer}</span>
                       		<b>
                       			<fmt:formatNumber type="currency" value="${sg.price/100} "/> 
                       		</b></p>
                        	<p><span>${sg.shopName}</span></p>
                        </c:forEach>
                        <%--<div class="alp">--%>
                        <%--<dl>--%>
                        <%--<dd><a href="#"><i></i>查看</a></dd>--%>
                        <%--<dd class="leftbor"><a href="#"><i></i>2人喜欢</a></dd>--%>
                        <%--</dl>--%>
                        <%--</div>--%>
                    </div>
            </div>
        </div>
    </div>
    <div class="pagebox">
        <div class="line"></div>
        <div class="btnbox">
            <div class="prevbtn"><i></i></div>
            <div class="numbox">
                <div class="number_o">1</div>
                <div class="number_o act">2</div>
                <div class="number_o">3</div>
                <div class="number_o">4</div>
                <div class="number_o">5</div>
                <div class="number_o">6</div>
                <p>...</p>
                <div class="number_o">100</div>
            </div>
            <div class="nextbtn"><i></i></div>
        </div>
        <div class="gotopage">
            <div class="newinputtype"><input type="text" tyv="pno" ><i>╲</i></div><button>确定</button>
        </div>
    </div>
</div>
<script src="/static/js/jquery-1.10.2.min.js"></script>
<script src="/static/js/underscore-min.js"></script>
<script src="/static/js/backbone-min.js"></script>
<script src="/static/js/search.js"></script>
</body>
</html>